package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.OrderCouponDO;
import com.ssy.lingxi.order.entity.OrderDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 订单关联的优惠券Jpa仓库
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-23
 */
@Repository
public interface OrderCouponRepository extends JpaRepository<OrderCouponDO, Long>, JpaSpecificationExecutor<OrderCouponDO>, QuerydslPredicateExecutor<OrderCouponDO> {
    List<OrderCouponDO> findByOrder(OrderDO order);
}
